/**
 * Copyright 2018 orivil.com. All rights reserved.
 * Use of this source code is governed by a MIT-style
 * license that can be found at https://mit-license.org.
 */

package wechat

import "fmt"

type weChatError struct {
	ErrCode int    `json:"errcode"`
	ErrMsg  string `json:"errmsg"`
}

func (we *weChatError) Error() string {
	return fmt.Sprintf("error code:%d error msg:%s", we.ErrCode, we.ErrMsg)
}
